using System;
using System.Collections.Generic;
using System.Text;

using LegendemuLib;

namespace LegendemuLogin.Packets.Client
{
    public class SelectChar : Packet
    {
        public SelectChar()
        {
            this.size = 4;
            this.offset = 4;
        }

        public override LegendemuLib.Packet New()
        {
            return (LegendemuLib.Packet)new LegendemuLogin.Packets.Client.SelectChar();
        }

        public override void Parse(LegendemuLib.Client client)
        {
            ((LoginClient)(client)).OnSelectChar(this);
        }

        public int GetSelChar()
        {
            return this.GetInt(4);
        }

        public byte GetChanel()
        {
            return this.GetByte(8);
        }
    }
}

